package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(description = "")
public class CategoryDTO implements Serializable {


    //主键
    @ApiModelProperty("主键ID")
    @NotNull(groups = edit.class)
    private Long id;

    @ApiModelProperty("菜品类型:1菜品,2套餐")
    @NotNull
    //类型 1 菜品分类 2 套餐分类
    private Integer type;

    @ApiModelProperty("分类名称")
    @NotEmpty
    //分类名称
    private String name;

    @ApiModelProperty("排序,按照升序排序")
    @NotNull
    //排序
    private Integer sort;

    public interface edit{}
}
